package com.yonyou.cyxdms.sysmanage.client.vo.company;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.yonyou.cyx.function.utils.jsonserializer.localdatetime.JsonLongLocalDateTimeDeserializer;
import com.yonyou.cyx.function.utils.jsonserializer.localdatetime.JsonLongLocalDateTimeSerializer;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 树状图Dto
 *
 * @author renwd
 * @since 2019/7/8
 */
public class CompanyOrgMaintenanceTreeVO implements Serializable {

    private static final long serialVersionUID = 1L;

    private String id;
    private String parent;
    private String text;
    private String code;
    private String data;
    //组织ID
    private String orgId;
    //组织类型
    private String orgType;
    //业务类型
    private String busiType;
    //公司ID
    private String companyId;
    //组织代码
    private String orgCode;
    //组织名称
    private String orgName;
    //上级组织ID
    private String parentOrgId;
    //备注
    private String remark;
    //状态
    private String status;

    //创建时间
    @JsonDeserialize(using = JsonLongLocalDateTimeDeserializer.class)
    @JsonSerialize(using = JsonLongLocalDateTimeSerializer.class)
    private LocalDateTime createdAt;

    //创建人
    private String createdBy;

    //更新时间
    @JsonDeserialize(using = JsonLongLocalDateTimeDeserializer.class)
    @JsonSerialize(using = JsonLongLocalDateTimeSerializer.class)
    private LocalDateTime updatedAt;

    //更新人
    private String updatedBy;

    private String sapOrgCode;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getParent() {
        return parent;
    }

    public void setParent(String parent) {
        this.parent = parent;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }

    public String getOrgId() {
        return orgId;
    }

    public void setOrgId(String orgId) {
        this.orgId = orgId;
    }

    public String getOrgType() {
        return orgType;
    }

    public void setOrgType(String orgType) {
        this.orgType = orgType;
    }

    public String getBusiType() {
        return busiType;
    }

    public void setBusiType(String busiType) {
        this.busiType = busiType;
    }

    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    public String getOrgCode() {
        return orgCode;
    }

    public void setOrgCode(String orgCode) {
        this.orgCode = orgCode;
    }

    public String getOrgName() {
        return orgName;
    }

    public void setOrgName(String orgName) {
        this.orgName = orgName;
    }

    public String getParentOrgId() {
        return parentOrgId;
    }

    public void setParentOrgId(String parentOrgId) {
        this.parentOrgId = parentOrgId;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public LocalDateTime getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(LocalDateTime createdAt) {
        this.createdAt = createdAt;
    }

    public LocalDateTime getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(LocalDateTime updatedAt) {
        this.updatedAt = updatedAt;
    }

    public String getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    public String getUpdatedBy() {
        return updatedBy;
    }

    public void setUpdatedBy(String updatedBy) {
        this.updatedBy = updatedBy;
    }

    public String getSapOrgCode() {
        return sapOrgCode;
    }

    public void setSapOrgCode(String sapOrgCode) {
        this.sapOrgCode = sapOrgCode;
    }

    @Override
    public String toString() {
        return "CompanyOrgMaintenanceTreeVO{" +
                "id='" + id + '\'' +
                ", parent='" + parent + '\'' +
                ", text='" + text + '\'' +
                ", code='" + code + '\'' +
                ", data='" + data + '\'' +
                ", orgId='" + orgId + '\'' +
                ", orgType='" + orgType + '\'' +
                ", busiType='" + busiType + '\'' +
                ", companyId='" + companyId + '\'' +
                ", orgCode='" + orgCode + '\'' +
                ", orgName='" + orgName + '\'' +
                ", parentOrgId='" + parentOrgId + '\'' +
                ", remark='" + remark + '\'' +
                ", status='" + status + '\'' +
                ", createdAt=" + createdAt +
                ", createdBy='" + createdBy + '\'' +
                ", updatedAt=" + updatedAt +
                ", updatedBy='" + updatedBy + '\'' +
                '}';
    }
}
